package com.qyhl.module_practice.newhome.fragment.news;


import com.qyhl.webtv.commonlib.entity.news.NewsBean;

import java.util.List;

public class PracticeHomeNewsPresenter implements PracticeHomeNewsContract.PracticeHomeNewsPresenter {
    private PracticeHomeNewsModel mModel;
    private PracticeHomeNewsContract.PracticeHomeNewsView mView;

    public PracticeHomeNewsPresenter(PracticeHomeNewsContract.PracticeHomeNewsView mView) {
        this.mView = mView;
        this.mModel = new PracticeHomeNewsModel(this);
    }

    @Override
    public void getData(String sectionId) {
        mModel.getData(sectionId);
    }

    @Override
    public void setData(List<NewsBean> beanList) {
        mView.setData(beanList);
    }

    @Override
    public void setError(String msg) {
        mView.setError(msg);
    }
}
